package com.naughty.userlogin02.bean;

import java.util.List;

public class Classg {
    private  String cid;
    private  String tid;
    private  Long  cnum;
    private  String cname;
    private List<Student> student;

    // 构造函数

    public Classg() {
    }

    public Classg(String cid, String tid, Long cnum, String cname, List<Student> student) {
        this.cid = cid;
        this.tid = tid;
        this.cnum = cnum;
        this.cname = cname;
        this.student = student;
    }

    // get and set 方法

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public Long getCnum() {
        return cnum;
    }

    public void setCnum(Long cnum) {
        this.cnum = cnum;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public List<Student> getStudent() {
        return student;
    }

    public void setStudent(List<Student> student) {
        this.student = student;
    }



    //to string方法

    @Override
    public String toString() {
        return "Course{" +
                "cid='" + cid + '\'' +
                ", tid='" + tid + '\'' +
                ", cnum=" + cnum +
                ", cname='" + cname + '\'' +
                '}';
    }
}
